/**
 * 转换保质日期
 * @param {String} product 
 * @param {Number} shelf
 */
export const transmitShelflife = (product, shelf) => {
	const productArr = product.split('-');
	if (+productArr[1] + shelf > 12) {
		const year = +productArr[0] + 1;
		const month = +productArr[1] + shelf - 12;
		return `${year}-${month}-${productArr[2]}`;
	} else {
		const year = +productArr[0];
		const month = +productArr[1] + shelf;
		return `${year}-${month}-${productArr[2]}`;
	}
};